package com.firexxx.study.performancetest.timeconsume;

/**
 * TODO
 *
 * @author fireXXX
 * @date 2020/11/18 23:47
 **/
public class IoTimeConsume implements ITimeConsume {

    private int time;

    @Override
    public void run() {
        try {
            Thread.sleep(time);
        } catch (InterruptedException e) {
        }
    }

    @Override
    public void setTime(int time) {
        this.time = time;
    }

    @Override
    public int getTime() {
        return time;
    }

}